package com.foruo.learn.designmode.visitor;

/**
 * 裤子
 * @author GaoYuan
 * @date 2018/11/11 上午8:41
 */
public class Trousers extends Goods{

    /** 长度 */
    private int length;

    public Trousers(String goodsName, int price, int length){
        setGoodsName(goodsName);
        setPrice(price);
        this.length = length;
    }

    public int getLength() {
        return length;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
